package com.codingstudy.login.domain.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

/**
 * @Author: wangzhengsheng@supcon.com
 * @Create: 2021/6/28 10:39
 */
@ApiModel(
        value = "token登录",
        description = "token登录"
)
public class LoginJwtBO implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(
            value = "用户名",
            example = "admin"
    )
    private String username;
    @ApiModelProperty(
            value = "密码",
            example = "123456abcd"
    )
    private String password;
    @ApiModelProperty(
            value = "验证码id",
            example = "44324edffdasfd"
    )
    private String guid;
    @ApiModelProperty(
            value = "验证码内容",
            example = "af4r"
    )
    private String captcha;
    @ApiModelProperty(
            value = "记住我",
            example = "true"
    )
    private String rememberMe;

    public LoginJwtBO() {
    }

    public String getUsername() {
        return this.username;
    }

    public String getPassword() {
        return this.password;
    }

    public String getGuid() {
        return this.guid;
    }

    public String getCaptcha() {
        return this.captcha;
    }

    public String getRememberMe() {
        return this.rememberMe;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

    public void setRememberMe(String rememberMe) {
        this.rememberMe = rememberMe;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof LoginJwtBO)) {
            return false;
        } else {
            LoginJwtBO other = (LoginJwtBO)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label71: {
                    Object this$username = this.getUsername();
                    Object other$username = other.getUsername();
                    if (this$username == null) {
                        if (other$username == null) {
                            break label71;
                        }
                    } else if (this$username.equals(other$username)) {
                        break label71;
                    }

                    return false;
                }

                Object this$password = this.getPassword();
                Object other$password = other.getPassword();
                if (this$password == null) {
                    if (other$password != null) {
                        return false;
                    }
                } else if (!this$password.equals(other$password)) {
                    return false;
                }

                label57: {
                    Object this$guid = this.getGuid();
                    Object other$guid = other.getGuid();
                    if (this$guid == null) {
                        if (other$guid == null) {
                            break label57;
                        }
                    } else if (this$guid.equals(other$guid)) {
                        break label57;
                    }

                    return false;
                }

                Object this$captcha = this.getCaptcha();
                Object other$captcha = other.getCaptcha();
                if (this$captcha == null) {
                    if (other$captcha != null) {
                        return false;
                    }
                } else if (!this$captcha.equals(other$captcha)) {
                    return false;
                }

                Object this$rememberMe = this.getRememberMe();
                Object other$rememberMe = other.getRememberMe();
                if (this$rememberMe == null) {
                    if (other$rememberMe == null) {
                        return true;
                    }
                } else if (this$rememberMe.equals(other$rememberMe)) {
                    return true;
                }

                return false;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof LoginJwtBO;
    }

    public int hashCode() {
        int PRIME = 1;
        int result = 1;
        Object $username = this.getUsername();
        result = result * 59 + ($username == null ? 43 : $username.hashCode());
        Object $password = this.getPassword();
        result = result * 59 + ($password == null ? 43 : $password.hashCode());
        Object $guid = this.getGuid();
        result = result * 59 + ($guid == null ? 43 : $guid.hashCode());
        Object $captcha = this.getCaptcha();
        result = result * 59 + ($captcha == null ? 43 : $captcha.hashCode());
        Object $rememberMe = this.getRememberMe();
        result = result * 59 + ($rememberMe == null ? 43 : $rememberMe.hashCode());
        return result;
    }

    public String toString() {
        return "LoginJwtBO(username=" + this.getUsername() + ", password=" + this.getPassword() + ", guid=" + this.getGuid() + ", captcha=" + this.getCaptcha() + ", rememberMe=" + this.getRememberMe() + ")";
    }
}
